<%@ page language="java"  pageEncoding="UTF-8"%>
<%@ include file="/views/commons/taglibs.jsp" %>
<input type="hidden" name="orderField" id="order_field" value="${paramMap.orderField}"/>
<input type="hidden" name="orderDirection" id="order_direction" value="${paramMap.orderDirection}"/>
<c:choose>
<c:when test="${!empty dataList && fn:length(dataList) ne 0}">
<div  class="tab-pane in active">
	<table class="table table-hover">
		<thead>
			<tr>
				<s:sortField name="项目名"  field="project_name" queryFunction="queryDataList" style="300px" orderDirection="${paramMap.orderDirection}" orderField="${paramMap.orderField}"></s:sortField>
				<th>平台名</th>
				<c:choose>
				<c:when test="${paramMap.platformType==2||paramMap.platformType==3}"> 
					<s:sortField name="募资金额"  field="raised_amount" queryFunction="queryDataList"  orderDirection="${paramMap.orderDirection}" orderField="${paramMap.orderField}"></s:sortField>
					<s:sortField name="累计分红"  field="total_dividend" queryFunction="queryDataList"  orderDirection="${paramMap.orderDirection}" orderField="${paramMap.orderField}"></s:sortField>
					<s:sortField name="运营时间"  field="operation_time" queryFunction="queryDataList"  orderDirection="${paramMap.orderDirection}" orderField="${paramMap.orderField}"></s:sortField>
					<s:sortField name="分红/募资金额"  field="dividend_ratio" queryFunction="queryDataList"  orderDirection="${paramMap.orderDirection}" orderField="${paramMap.orderField}"></s:sortField>
				</c:when>
				<c:when test="${paramMap.platformType==1}">
					<s:sortField name="募集后估值"  field="valuation_after_raised" queryFunction="queryDataList"  orderDirection="${paramMap.orderDirection}" orderField="${paramMap.orderField}"></s:sortField>
					<s:sortField name="下轮融资类型"  field="valuation_type" queryFunction="queryDataList"  orderDirection="${paramMap.orderDirection}" orderField="${paramMap.orderField}"></s:sortField>
				</c:when>
				</c:choose>
			</tr>
		</thead>
		<tbody>
			<c:forEach var="data" items="${dataList}" varStatus="index">
				<tr>
					<td> <b class="title">${data.projectName}</b></td>
					<td>${data.platformName}</td>
					<c:choose>
					<c:when test="${paramMap.platformType==2||paramMap.platformType==3}">  
						<td>${data.raisedAmount/10000}万元</td>
						<td>${data.totalDividend/10000}万元</td>
						<td>${data.operationTime}个月</td>
						<td>
							<c:choose>
							<c:when test="${data.dividendRatio>0}"> 
							<span class="c_f60">${data.dividendRatio}%</span>
							</c:when>
							<c:otherwise>
							<span class="text-danger">${data.dividendRatio}%</span>
							</c:otherwise>
							</c:choose>
						</td>
					</c:when>
					<c:when test="${paramMap.platformType==1}">
						<td>${data.valuationAfterRaised/10000}万元</td>
						<td>
							<c:choose>
							<c:when test="${data.valuationType==1}"> 
							下轮融资
							</c:when>
							<c:otherwise>
							退出
							</c:otherwise>
							</c:choose>
						</td>
					</c:when>
					</c:choose>
				</tr>
			</c:forEach>
		</tbody>
	</table>
</div>
<p:pagination pageNo="${paramMap.pageNo}" pageCount="${paramMap.pageCount}" queryFunction="queryDataList"></p:pagination>
</c:when>
<c:otherwise>
<div  class="tab-pane in active">
	<table class="table table-hover">
		<thead>
			<tr>
				<th width="300">项目名</th>
				<th>平台名</th>
				<c:choose>
				<c:when test="${paramMap.platformType==2||paramMap.platformType==3}">  
					<th>募资金额</th>
					<th>累计分红</th>
					<th>运营时间</th>
					<th>分红/募资金额</th>
				</c:when>
				<c:when test="${paramMap.platformType==1}">
					<th>募集后估值</th>
					<th>下一轮融资估值</th>
					<th>升值比例</th>
				</c:when>
				</c:choose>
			</tr>
		</thead>
		<tbody>
				<tr style="text-align: center;">
					<td colspan="5">暂无数据</td>
				</tr>
		</tbody>
	</table>
</div>
</c:otherwise>
</c:choose>